import {createApp} from 'vue'
import App from './App.vue'
import router from './router/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import '@/assets/css/reset.css'; // 重置样式
import '@/assets/css/index.scss'; // 全局样式
import '@/assets/css/tableView.scss'// 表格样式
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import $CONSTANTS from "@/constants/globalConstants"

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.config.globalProperties.$CONSTANTS = $CONSTANTS
app.use(ElementPlus, {
  locale: zhCn,
});
// @ts-ignore
app.use(router).mount('#app')
